package com.gec.obwiki.service;

import com.gec.obwiki.domain.dto.CategoryQueryReq;
import com.gec.obwiki.domain.dto.CategorySaveReq;
import com.gec.obwiki.domain.pojo.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.obwiki.domain.vo.CategoryQueryResp;
import com.gec.obwiki.domain.vo.PageResp;

import java.util.List;

/**
* @author adim
* @description 针对表【category】的数据库操作Service
* @createDate 2025-06-23 11:12:37
*/
public interface CategoryService extends IService<Category> {

    /**
     * 分页查询，根据名称
     * @param req
     * @return
     */
    PageResp<CategoryQueryResp> listByname(CategoryQueryReq req);

    /**
     * 保存
     * @param req
     */
    void save(CategorySaveReq req);

    /**
     * 删除
     */
    void delete(Long id);

    List<CategoryQueryResp> all();
}
